package com.groupbuying.provider.controller;

import com.groupbuying.provider.service.StoreCapitalVirtualAccountDetailService;
import com.groupbuying.provider.utils.PageUtils;
import com.groupbuying.provider.utils.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @anthor wenguoqiang
 * @date: 2019/04/03 17:04
 * @company 够样
 * @des
 **/
@RestController
@RequestMapping("/storeVirtualAccountManage")
public class StoreVirtualAccountManageController {
    private static Logger logger = LoggerFactory.getLogger(StoreVirtualAccountManageController.class);
    @Autowired
    private StoreCapitalVirtualAccountDetailService storeCapitalVirtualAccountDetailService;

    @GetMapping("/getListByPage")
    public R getListByPage(@RequestParam Map<String, Object> params){
        return  storeCapitalVirtualAccountDetailService.getListByPage(params);
    }

    @GetMapping("/getFinancialPwdList")
    public PageUtils getFinancialPwdList(@RequestParam Map<String, Object> params){
        logger.error("StoreVirtualAccountManageController-->getFinancialPwdList params:::"+params);
        return storeCapitalVirtualAccountDetailService.getFinancialPwdList(params);
    }


}
